<%--
  Created by IntelliJ IDEA.
  User: Vadim
  Date: 9/18/14
  Time: 8:22 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@ page isELIgnored="false" %>

<html>
<head>
    <title>Admin Portal</title>
    <link href='/content/style/style.css' rel='stylesheet' />
    <script src="../content/scripts/jquery.min.js"></script>

</head>
<body>
<div id="container">
    <div id="header">
        <jsp:include page="/publicpages/common/header.jsp"/>
    </div>
    <div id="body">
        <h1>Admin's page</h1>

        <table>
            <tr style="padding: 20px;">
                <hr/>
                <strong>Common Info</strong>
                <hr/>
                <table>
                    <tr>
                        <td>
                            Rule:
                        </td>
                        <td>
                            <strong>${role}</strong>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Full Name:
                        </td>
                        <td>
                            <input type="text" name="login" value="${full_name}" />
                        </td>
                    </tr>
                </table>
            </tr>
            <tr style="padding: 20px;">
                <hr/>
                <strong>Address Info</strong>
                <hr/>
                <a href="/securepages/address_creator.do">Add</a>
                <c:forEach var="item" items="${addreses}">
                    <br/>#${item.id} <a href="/securepages/address_deleter.do?addres_id=${item.id}">Delete</a><br/>
                    <table>
                        <tr>
                            <td>
                                Country:
                            </td>
                            <td>
                                ${item.country}
                            </td>
                        </tr>
                        <tr>
                            <td>
                                City:
                            </td>
                            <td>
                                ${item.city}
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Street:
                            </td>
                            <td>
                                ${item.street}
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Postal Code:
                            </td>
                            <td>
                                ${item.postal_code}
                            </td>
                        </tr>

                    </table>
                </c:forEach>
            </tr>
        </table>


    </div>
    <div id="footer">
        <jsp:include page="/publicpages/common/footer.jsp"/>
    </div>
</div>
</body>
</html>
